package com.pac.bean.hot;

import android.text.TextUtils;

import com.alibaba.fastjson.JSON;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.List;

/**
 * Created by aaa on 15-4-22.
 */
public class Hot {
    private List<HotlistDetails> list;
    private List<HotgcateDetails> gcate;
    public static Hot getInstanceFromJsonStr(String json){
        try {
            JSONObject jsonObject = new JSONObject(json);
            if (TextUtils.isEmpty(json)){
                return null;
            }else{
                return JSON.parseObject(json,Hot.class);
            }
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return null;
    }

    public List<HotlistDetails> getList() {
        return list;
    }

    public void setList(List<HotlistDetails> list) {
        this.list = list;
    }

    public List<HotgcateDetails> getGcate() {
        return gcate;
    }

    public void setGcate(List<HotgcateDetails> gcate) {
        this.gcate = gcate;
    }
}
